package com.yonyou.pmclouds.plan.planindex.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.plan.planindex.entity.PlanIndexVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Set;

@Mapper
public interface PlanIndexMapper extends BaseMapper<PlanIndexVO> {

    List<PlanIndexVO> queryByPks(@Param("pkIndexes") List<String> pkIndexes);

    List<PlanIndexVO> queryIndexOfPlan(@Param("pkPlan") String pkPlan);

    List<PlanIndexVO> queryIndexOfPlans(@Param("pkPlans") String[] pkPlans);

    PlanIndexVO[] queryIdnexByPkMeasureindex(@Param("pkMeasureindexs") Set<String> pkMeasureindexs);
    /**
     *查询项目下指标计划
     */
    List<PlanIndexVO> queryByProjectIds(@Param("pkProjects") String[] pkProjects);
    /**
     * 单项目指标报表查询(pkProject,pkMeasureIndex,pkSchedule)
     */
    List<PlanIndexVO> queryIndexBySingleProject(@Param("measureIndexIds") String[] measureIndexIds, @Param("scheduleItemIds") String[] scheduleItemIds, @Param("startDate")Date startDate,@Param("endDate")Date endDate);
}
